/**
 * 
 */
package com.kelaite.procurement.constants;


/**
 * @author yuanchangwei
 *
 */
public enum VendorUserBusinessTypeEnum {

	CLIENT(1, "client"), 
	SUPPLIER(2, "supplier");
	
	private int val;
	private String desc;
	public int getVal() {
		return val;
	}
	public void setVal(int val) {
		this.val = val;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	private VendorUserBusinessTypeEnum(int val, String desc) {
		this.val = val;
		this.desc = desc;
	}
	
	public static VendorUserBusinessTypeEnum getCurrency(int input){
		for(VendorUserBusinessTypeEnum entity : values()){
			if(input == entity.getVal()){
				return entity;
			}
		}
		return null;
	} 
}
